SetSourcePart
TheSetSourcePart
method establishes the source part that is to maintain this link-source object.
void SetSourcePart (in ODStorageUnit sourcePartSU);
sourcePartSU
- A reference to the storage unit for the new source part.
DISCUSSION
Both parts and container applications call this method, typically when this link-source object is cloned during data-transfer operations involving the linked content.If the user cuts content from your part that includes the link source, your part relinquishes ownership of this link-source object. If the user subsequently undoes that action, you must call this method to reclaim ownership.
After this method executes successfully, the reference count of the storage unit of the previous source part is decremented and the reference count of the new source part's storage unit is incremented.
SEE ALSO
"Handling Cut Data" on page 334 in OpenDoc Programmer's Guide.
"Reading Links in InitPartFromStorage" on page 390 in OpenDoc Programmer's Guide.
"Breaking and Cutting Links" on page 394 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help